import request from "@/utils/request.js"

export function query_by_id(id) {
    return request({
        url: "/product/" + id,
        method: "GET",
    })
}

export function query_by_type_id(type_id) {
    return request({
        url: "/product/queryByTypeId",
        method: "GET",
        data: {
            typeid: type_id
        }
    })
}
